package com.example.uiautomator;

import java.io.File;
import java.io.IOException;

public class FileUtils {
    public static File createFile(String path, String fileName) {
        File file = new File(path, fileName);

        try {
            if (file.exists()) {
                file.delete();
            }
            file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
            return null;
        }
        return file;
    }
}
